import java.util.Scanner;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User: Administrator
 * Data: 2023 - 10 - 14
 * Time: 21:54
 */
//牛客 密码强度等级
public class Solution7 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNextLine()) { // 注意 while 处理多个 case
            String str = in.nextLine();
            int sum = 0;
            int sum1 = getLen(str);
            int sum2 = getChar(str);
            int sum3 = getNum(str);
            int sum4 = getSym(str);
            if(sum2 == 20 && sum3 >= 1 && sum4 >= 1) {
                sum = sum1 + sum2 + sum3 + sum4 + 5;
            }else if(sum2 == 10 && sum3 >= 1 && sum4 >= 1) {
                sum = sum1 + sum2 + sum3 + sum4 + 3;
            }else if(sum2 == 10 && sum3 >= 1 && sum4 == 0) {
                sum = sum1 + sum2 + sum3 + sum4 + 2;
            }else {
                sum = sum1 + sum2 + sum3 + sum4;
            }
            if(sum >= 90) {
                System.out.println("VERY_SECURE");
            }else if(sum >= 80) {
                System.out.println("SECURE");
            }else if(sum >= 70) {
                System.out.println("VERY_STRONG");
            }else if(sum >= 60) {
                System.out.println("STRONG");
            }else if(sum >= 50) {
                System.out.println("AVERAGE");
            }else if(sum >= 25) {
                System.out.println("WEAK");
            }else {
                System.out.println("VERY_WEAK");
            }
        }
    }

    public static int getLen(String str) {
        if(str.length() <= 4) {
            return 5;
        }else if(str.length() >= 5 && str.length() <= 7) {
            return 10;
        }else  {
            return 25;
        }
    }

    public static int getChar(String str) {
        int big = 0;
        int small = 0;
        for(int i = 0; i < str.length(); i++) {
            if(str.charAt(i) >= 65 && str.charAt(i) <= 90) {
                big++;
            }else if(str.charAt(i) >= 97 && str.charAt(i) <= 122) {
                small++;
            }
        }
        if(small > 0 && big > 0) {
            return 20;
        }else if(small > 0 || big > 0) {
            return 10;
        }else {
            return 0;
        }
    }

    public static int getNum(String str) {
        int sum = 0;
        for(int i = 0; i < str.length(); i++) {
            if(str.charAt(i) - '0' >= 0 && str.charAt(i) - '0' <= 9) {
                sum++;
            }
        }
        if(sum > 1) {
            return 20;
        }else if(sum == 1) {
            return 10;
        }else {
            return 0;
        }
    }

    public static int getSym(String str) {
        int sum = 0;
        for(int i = 0; i < str.length(); i++) {
            if(!(str.charAt(i) >= 65 && str.charAt(i) <= 90) &&
                    !(str.charAt(i) >= 97 && str.charAt(i) <= 122) &&
                    !(str.charAt(i) - '0' >= 0 && str.charAt(i) - '0' <= 9)) {
                sum++;
            }
        }
        if(sum > 1) {
            return 25;
        }else if(sum == 1) {
            return 10;
        }else {
            return 0;
        }
    }
}
